import { db } from '@/lib/db';

export const getUserByEmail = async (userEmail) => {
    const user = await db.tb_user.findUnique({
        where: {
            user_email: userEmail
        }
    });
    return user;
};

export const getUserById = async (userId) => {
    const user = await db.tb_user.findUnique({
        where: {
            user_id: userId
        }
    });
    return user;
};
